
<style>
    .medialist{
        display: flex;
        flex-wrap: wrap;
    }

    .medialist img{
        width: 100px;
        height: 100px;
        object-fit: cover;
    }

    .medialist .item+.item{
       margin-left: 10px;
    }

    .medialist video{
        width: 300px;
        height: 180px;
    }

</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"> </label>

        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12 col-sm-6">
                <label class="control-label col-xs-12 col-sm-4">{:__('Type')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input  value="{$row.type_text}" class="form-control" disabled/>
                </div>
            </div>
            <div class="col-xs-12 col-sm-6">
                <label class="control-label col-xs-12 col-sm-4">{:__('Category')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input  value="{$row.category_text}" class="form-control" disabled/>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('支付状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="$row.money_amount gt 0"}
                {if condition="$row.is_pay_done"}
                <input id="c-pay" disabled class="form-control" value="已经支付">
                {else /}
                    <input id="c-pay" disabled class="form-control" value="待支付">
                {/if}
            {else /}
                <input id="c-pay" disabled class="form-control" value="无需支付">
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" disabled data-source="user/user/index" data-field="nickname" class="form-control selectpage" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" {if condition="$row['status'] neq 0"} disabled {/if} class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control" rows="5" {if condition="$row['status'] neq 0"} disabled {/if}  name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('附件')}:</label>
        <div class="col-xs-12 col-sm-8 medialist">
            {volist name="$row['file_list']" id="vo" empty="无"}
                <a class="item" href="{$vo.cdn_url}" target="_blank">
                    {if condition="$row['category'] eq 2"}
                    <img src="{$vo.cdn_url}" />
                    {else/}
                        <video src="{$vo.cdn_url}" ></video>
                    {/if}
                </a>
            {/volist}
        </div>
    </div>
    {if condition="$row.money_amount gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_amount" disabled class="form-control" step="0.01"  type="number" value="{$row.money_amount|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row.money_count gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_count" disabled class="form-control" type="number" value="{$row.money_count|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row.gold_num gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('总金币')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_count"disabled class="form-control" type="number" value="{$row.gold_num|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row.money_count gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('已被领取金币')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_count"disabled class="form-control" type="number" value="{$row.get_num|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row.money_count gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('已被领取份数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money_count"disabled class="form-control" type="number" value="{$row.redpack_get_num|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-range" disabled  class="form-control"  type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('到期时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-effecttime" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{:$row.effecttime?datetime($row.effecttime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('置顶到期时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-toptime" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" type="text" value="{:$row.toptime?datetime($row.toptime):''}">
        </div>
    </div>
    {if condition="$row.recommendtime gt 0"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('推荐到期时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-recommendtime" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[recommendtime]" type="text" value="{:$row.recommendtime?datetime($row.recommendtime):''}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Linkname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-linkname" disabled class="form-control" type="text" value="{$row.linkname|htmlentities}：{$row.telephone|htmlentities}">
        </div>
    </div>
    {if condition="$row.status eq 2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sudit_opinion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sudit_opinion" disabled class="form-control" name="row[sudit_opinion]" type="text" value="{$row.sudit_opinion|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row.status eq 0"}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('修改')}</button>
        </div>
    </div>
    {/if}
</form>

